#ifndef _LOGMANAGER_H_
#define _LOGMANAGER_H_

#include "winstdtools.h"

#include <list>
#include <string>

#include "Log.h"

#include "Mutex.h"

namespace StdTools
{
#ifdef WIN
	class STDTOOLS_API LogManager
#else
	class LogManager
#endif
	{
	public:
		LogManager();
		virtual ~LogManager();
		virtual Log * create(std::string name="Log.log",bool system=true,bool cmd=false);
		
		void systemLogMessage(std::string message);
	protected:
	private:
		std::list<Log *> logs;
		std::list<Log *> systemLogs;

		Threads::Mutex mutex;
	};
}
#endif
